package cn.canxin.core.dao.teacher;

import cn.canxin.core.bean.Teacher.TeacherTeachingTimeInfo;
import cn.canxin.core.dao.SimpleInsertLangDriver;
import cn.canxin.core.dao.SimpleSelectLangDriver;
import cn.canxin.core.dao.SimpleUpdateLangDriver;
import org.apache.ibatis.annotations.Lang;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @author chencan
 *
 */
public interface TeacherTeachingTimeInfoDao {

	@Lang(SimpleUpdateLangDriver.class)
	@Update("UPDATE canxin_teacher_teaching_time_info(#{teacherTeachingTimeInfo}) WHERE id = #{id}")
	public void updateTeacherTeachingTimeInfo(TeacherTeachingTimeInfo teacherTeachingTimeInfo);

	@Select("SELECT * FROM canxin_teacher_teaching_time_info (#{teacherTeachingTimeInfo})")
	@Lang(SimpleSelectLangDriver.class)
	public List<TeacherTeachingTimeInfo> getTeacherTeachingTimeInfo(TeacherTeachingTimeInfo teacherTeachingTimeInfo);

	@Select("insert into canxin_teacher_teaching_time_info  (#{teacherTeachingTimeInfo})")
	@Lang(SimpleInsertLangDriver.class)
	public void addTeacherTeachingTimeInfo(TeacherTeachingTimeInfo teacherTeachingTimeInfo);
}
